<%--
  Created by IntelliJ IDEA.
  User: 12460
  Date: 2024/11/30
  Time: 15:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>choose标签</title>
</head>
<body>
    <form action="demo11.jsp">
        请输入分数：
        <input type="text" name="score" value="${param.score}" />
        <input type="submit" value="评级">
    </form>

    <c:choose>
        <c:when test="${param.score>=80 && param.score<=100}">
            <h2 style="color: red">优秀</h2>
        </c:when>
        <c:when test="${param.score>=60 && param.score<80}">
            <h2 style="color: green">良好</h2>
        </c:when>
        <c:otherwise>
            <h2 style="color: aqua">不及格</h2>
        </c:otherwise>
    </c:choose>
</body>
</html>
